package com.bbm.service.impl;


import com.bbm.entity.Category;
import com.bbm.entity.vo.ResponseResult;
import com.bbm.mapper.CategoryMapper;
import com.bbm.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (Category)表服务实现类
 *
 * @author lionkliu
 * @since 2024-02-18 15:06:04
 */
@Service("categoryService")
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public ResponseResult insertOne(Category category) {
        return null;
    }

    @Override
    public ResponseResult deleteById(Integer id) {
        return null;
    }

    @Override
    public ResponseResult updateOne(Category category) {
        return null;
    }

    @Override
    public ResponseResult list() {
        List<Category> categoryList = categoryMapper.list();
        return ResponseResult.okResult(categoryList);
    }
}

